package com.ycz.mapper;

import com.ycz.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @author ycz
 * @date 2021/6/18
 * @description TODO
 * @Company © 版权所有 深圳市天行云供应链有限公司
 */
public interface UserMapper {

    @Select("select * from t_user where id=1")
    public User getById();

    @Select("select * from t_user where id=2")
    public User getById2();

    @Insert("INSERT INTO t_user(`name`,age) VALUES ('zhangsan',18)")
    void insert();
}
